/* ============================================================
   css/auth.css  –  Shared styles for login & signup pages
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&family=Playfair+Display:wght@700&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-from:   #1a2f6e;
  --bg-to:     #0d1f4a;
  --card-bg:   rgba(255,255,255,0.09);
  --border:    rgba(255,255,255,0.18);
  --text:      #ffffff;
  --muted:     rgba(255,255,255,0.65);
  --accent:    #ff7e5f;
  --accent-h:  #ff5a3c;
  --success:   #4ade80;
  --error:     #ff8080;
  --input-bg:  rgba(255,255,255,0.95);
  --input-txt: #1a1a2e;
  --radius:    12px;
  --shadow:    0 20px 60px rgba(0,0,0,0.45);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Nunito', sans-serif;
  background: linear-gradient(145deg, var(--bg-from) 0%, var(--bg-to) 100%);
  color: var(--text);
}

/* ── Background decoration ─────────────────────────────────── */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 20%, rgba(100,130,255,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 80% 80%, rgba(255,126,95,0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── Header ─────────────────────────────────────────────────── */
header {
  position: relative;
  z-index: 1;
  padding: 18px 32px;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  gap: 12px;
}

.logo-img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

.logo-placeholder {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #764ba2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  border: 2px solid var(--border);
}
@font-face {
  font-family: 'Samarkan';
  src: url('/fonts/Samarkan.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}


.brand {
  font-family: 'Samarkan', cursive;
  font-size: 25px;
  letter-spacing: 2px;
  color: #1a8fd1; /* ya tumhara theme color */
}
.sub    { font-size: 11px; opacity: 0.7; display: block; margin-top: 2px; }

/* ── Main ───────────────────────────────────────────────────── */
main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 16px;
}

/* ── Card ───────────────────────────────────────────────────── */
.auth-card {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 36px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow);
  animation: fadeUp 0.5s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0);    }
}

.auth-card h2 {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  text-align: center;
  margin-bottom: 6px;
}

.auth-card .subtitle {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 28px;
}

/* ── Form ───────────────────────────────────────────────────── */
.auth-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 5px;
  color: rgba(255,255,255,0.85);
}

.auth-form .field { margin-bottom: 18px; }

.input-wrap {
  position: relative;
}

.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"] {
  width: 100%;
  padding: 11px 40px 11px 14px;
  background: var(--input-bg);
  color: var(--input-txt);
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-size: 14px;
  font-family: 'Nunito', sans-serif;
  outline: none;
  transition: border-color 0.2s;
}

.auth-form input:focus {
  border-color: var(--accent);
}

.toggle-pass {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  user-select: none;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn-primary {
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent), var(--accent-h));
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Nunito', sans-serif;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 18px rgba(255,126,95,0.4);
  margin-top: 4px;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,126,95,0.5);
}

.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

/* ── Divider ────────────────────────────────────────────────── */
.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
  color: var(--muted);
  font-size: 12px;
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Google Button ──────────────────────────────────────────── */
.btn-google {
  width: 100%;
  padding: 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.08);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  font-family: 'Nunito', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.2s, transform 0.2s;
}

.btn-google:hover:not(:disabled) {
  background: rgba(255,255,255,0.15);
  transform: translateY(-1px);
}

.btn-google:disabled { opacity: 0.6; cursor: not-allowed; }

.google-icon {
  width: 18px;
  height: 18px;
}

/* ── Feedback Message ───────────────────────────────────────── */
#message {
  min-height: 20px;
  margin-top: 12px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  padding: 0 4px;
  transition: all 0.3s;
}

#message.error   { color: var(--error);   }
#message.success { color: var(--success); }

/* ── Footer Links ───────────────────────────────────────────── */
.auth-footer {
  text-align: center;
  margin-top: 22px;
  font-size: 13px;
  color: var(--muted);
}

.auth-footer a {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 1px;
  transition: border-color 0.2s;
}

.auth-footer a:hover { border-color: var(--accent); color: var(--accent); }

.forgot-link {
  display: block;
  text-align: right;
  font-size: 12px;
  color: var(--muted);
  margin-top: -10px;
  margin-bottom: 18px;
  cursor: pointer;
  transition: color 0.2s;
}
.forgot-link:hover { color: var(--accent); }

/* ── Page footer ────────────────────────────────────────────── */
footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 14px;
  color: var(--muted);
  font-size: 12px;
}